package com.qfedu.roomselectservice.service.impl;

import com.qfedu.entity.Room;
import com.qfedu.roomselectservice.dao.RoomDAO;
import com.qfedu.roomselectservice.service.RoomService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Room查询业务层
 * 作者：罗小宇
 * 日期：2020/7/3
 */
@Service
public class RoomServiceImpl implements RoomService {

    @Resource
    private RoomDAO roomDAO;

    /**
     * 查询room
     * @param roomId
     * @return Room
     */
    @Override
    public Room selectById(Integer roomId) {
        Room room = roomDAO.selectById(roomId);
        return room;
    }
}
